package com.huiying.entity.vo;

import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @Author: lsh
 * @Date: 2024/11/27/18:40
 * @Description:
 */
@Data
public class CommentVO {
    //评论id
    private Long id;
    //评论内容
    private String content;
    //评论图片
    private String imageUrl;
    //需求单或作品id
    private Long contentId;
    //0为需求单，1为作品
    private Integer contentType;
    //用户id
    private Long userId;
    private String username;//用户名
    private String avatar;//微信用户头像
    private String repliedUsername;//回复用户名
    //父评论id
    private Long parentId;
    //评论发表时间
    private LocalDateTime createdTime;
    // 子评论
    private List<CommentVO> replies;
}
